package cn.liccshop.sys.exception;

/**
 * @program: LiCCShop
 * @description: 自定义系统异常
 * @author: LiCC
 * @data 2019-03-15-20:59
 */
public class MySystemException extends Exception {

    private int code;

    public MySystemException() {
        super();
    }

    public MySystemException(Exception e) {
        super(e.getMessage());
    }

    public MySystemException(String message) {
        super(message);
    }

    public MySystemException(String message, int code) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public MySystemException setCode(int code) {
        this.code = code;
        return this;
    }

}
